﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2012/01/28
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Luminji.Core.Web
{
    public class ResponseHelper
    {
        public static void JSalert(HttpResponseBase response, string msg)
        {
            response.Write(string.Format(@"<Script language='javascript'>alert('{0}');</Script>", msg));
        }

        public static void JSer(HttpResponseBase response, string js)
        {
            response.Write(string.Format(@"<Script language='javascript'>{0}</Script>", js));
        }
    }
}
